package com.sjz;

import javax.annotation.PostConstruct;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class Application {
 
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }
 
    @Value("${opencv.path}")
    private String opencvPath;
 
    @PostConstruct
    public void init() {
        // 加载opencv库
        System.load(opencvPath);
    }
}